#if 0
void I2cClockSet()
{
	char data[8] = { 0x00, 0x08, 0x18, 0x01, 0x19, 0x02, 0x09 };
	SetEpromAddress8( 0xd0, 0 );
	WriteToEprom( 7, &data );


	/*
	I2C_Init();
	//write
	I2C_Start();

	// set addres to 0
	Ack( I2C_Write( 0xd0 ) );
	Ack( I2C_Write( 0x0 ) );
	//set data
	Ack( I2C_Write( 0x00 ) );  //seconds
	Ack( I2C_Write( 0x08 ) );  //mins
	Ack( I2C_Write( 0x18 ) );  //hours
	Ack( I2C_Write( 0x1 ) );
	Ack( I2C_Write( 0x19 ) );
	Ack( I2C_Write( 0x02 ) );
	Ack( I2C_Write( 0x09 ) );
	Ack( I2C_Write( 0x00 ) );
	I2C_Stop();
	*/
}

/*
void I2cClockSetTime(char h, char m, char s)
{
	I2C_Init();
	//write
	I2C_Start();

	// set addres to 0
	Ack( I2C_Write( 0xd0 ) );
	Ack( I2C_Write( 0x0 ) );
	//set data
	Ack( I2C_Write( s ) );  //seconds
	Ack( I2C_Write( m ) );  //mins
	Ack( I2C_Write( h ) );  //hours
	I2C_Stop();
}

void I2cClockSetDate(char d, char m, char y)
{
	I2C_Init();
	//write
	I2C_Start();

	// set addres to 0
	Ack( I2C_Write( 0xd0 ) );
	Ack( I2C_Write( 0x4 ) );
	//set data
	Ack( I2C_Write( d ) );  //seconds
	Ack( I2C_Write( m ) );  //mins
	Ack( I2C_Write( y ) );  //hours
	I2C_Stop();
}
*/
void I2cClockRead()
{
	char data[7];

	SetEpromAddress8( 0xd0, 0 );
	ReadFromEprom( 7, &data );

	PrintHex8( data[2] );
	Device_PrintChar(':');
	PrintHex8( data[1] );
	Device_PrintChar(':');
	PrintHex8( data[0] );
	Device_PrintChar(' ');
	PrintHex8( data[4] );
	Device_PrintChar('/');
	PrintHex8( data[5] );
	Device_PrintChar('/');
	PrintHex8( data[6] );
}

#endif
